/*
 * Copyright 2010    Sylvere RICHARD
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.infotrafficlux.server.bean;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;

import org.datanucleus.jpa.annotations.Extension;

import com.google.appengine.api.datastore.GeoPt;

/**
 * @author sly
 *
 */
@Entity(name = "Place")
public class Place {

	@Id
	//@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	
	private String citaId;
	
	@Basic
	@Extension(vendorName = "datanucleus",
            key = "gae.unindexed",
            value = "true")
	private GeoPt location;
	
	private String desc;

	private String highway;
	

	public Place(Long id, String citaId, GeoPt location, String desc, String highway) {
		super();
		this.id = id;
		this.citaId = citaId;
		this.location = location;
		this.desc = desc;
		this.highway = highway;
	}

	public String getCitaId() {
		return citaId;
	}

	public String getDesc() {
		return desc;
	}

	public Long getId() {
		return id;
	}

	
	
	public GeoPt getLocation() {
		return location;
	}

	public void setCitaId(String citaId) {
		this.citaId = citaId;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setLocation(GeoPt location) {
		this.location = location;
	}

	public String getHighway() {
		return highway;
	}

	public void setHighway(String highway) {
		this.highway = highway;
	}
	
	
}
